package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.CouponList;
import com.bwie.service.CouponListService;
import com.bwie.mapper.CouponListMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【coupon_list(优惠券列表表)】的数据库操作Service实现
 * @createDate 2025-07-11 20:26:31
 */
@Service
public class CouponListServiceImpl extends ServiceImpl<CouponListMapper, CouponList>
        implements CouponListService {

    @Autowired
    CouponListMapper couponListMapper;

    @Override
    public R getCouponList() {

        List<CouponList> couponLists = couponListMapper.selectList(null);

        return R.OK(couponLists);
    }
}




